package de.baumann.browser.utils.update

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent

class DownloadReceiver : BroadcastReceiver() {
    var downloadCompleteListener: DownloadCompleteListener? = null
    override fun onReceive(context: Context, intent: Intent) {
        if (downloadCompleteListener == null) {
            return
        }
        downloadCompleteListener!!.downloadComplele(context, intent)
    }

    interface DownloadCompleteListener {
        fun downloadComplele(context: Context, intent: Intent)
    }

}
